<?php
// +----------------------------------------------------------------------
// | makePHP 
// +----------------------------------------------------------------------
// | Copyright (c) 2009 http://makephp.org All rights reserved.
// +----------------------------------------------------------------------
// | Licensed BSD.(http://www.make.org/BSD-license.txt)
// +----------------------------------------------------------------------
// | Author: 叁石(sanshi) <sanshi0815@tom.com>
// | Author: 白家昌<baijc2004cn@126.com>
// +----------------------------------------------------------------------
class fck{
	var $object;
	function fck()
	{
		//echo FCK_PATH;exit();
		include_once(FCK_PATH."fckeditor.php");
		
	}
	function getFck($fckName,$content="",$is_page=false)
	{
		$this->object = new FCKeditor($fckName);
		$this->object->BasePath = HOST_PATH.'drivers/fckeditor/';
		$this->object->Width = "100%";
		$this->object->Height = "300px";
		$this->object->Value = $content;
		$this->object->FullPage = $is_page;
		return $this->object->CreateHtml();
	}
}
?>